import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    base:"zdxm",
	routes:[
		{
		    path: '/',
		    redirect: '/home'
        },
        {
            path: '/home',
            component: resolve => require(['../components/common/Home.vue'], resolve),
            redirect: '/project_manage',//项目管理
            children:[{
                path: '/project_manage',
                component: resolve => require(['../components/manage/AllProject.vue'], resolve)
            },
            {
                path:'/project_show',//项目查询分析
                component: resolve => require(['../components/show/Show.vue'], resolve)

            },
            {
                path: '/dynamic',//重大项目动态
                component: resolve => require(['../components/news/news.vue'], resolve)
            },
            {
                path: '/lnews',
                component: resolve => require(['../components/news/newsList.vue'], resolve)
            },
            {
                path: '/dnews',
                component: resolve => require(['../components/news/newsDetail.vue'], resolve)
            }
        ]
        },


	]
})
